package com.software.seakdream.service;

import com.software.seakdream.entity.SleepInfo;

import java.util.List;

public interface SleepInfoService {
    int createSleepInfo(SleepInfo sleepInfo);

    SleepInfo findSleepInfoById(String sleepId);

    SleepInfo findLastSleepInfo(String userId);

    List<SleepInfo> findSleepInfoUsePage(String userId, int page, int pageSize);

    List<SleepInfo> findSleepInfoInRange(String userId, String left, String right);
}
